package cn.miaoyao.miaoyaoms.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sun
 * @since 2023-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "表示逻辑删除，0表示未删除，1表示删除")
    //@TableLogic(value = "0",delval = "1")
    @TableField(fill=FieldFill.INSERT)//设置自动填充
    @TableLogic(value = "0",delval = "1")
    private Integer deleted;

    @ApiModelProperty(value = "id")
      @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;
    @ApiModelProperty(value = "admin")
    @TableField(exist = false)
    private String admin;


}
